package io.framework.modules.water.dao;

import io.framework.common.dao.BaseDao;
import io.framework.modules.water.entity.OceanBuoyPointEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 海洋浮标点信息
 *
 * @author Gujq email
 * @since 1.0.0 2020-07-21
 */
@Mapper
public interface OceanBuoyPointDao extends BaseDao<OceanBuoyPointEntity> {

    OceanBuoyPointEntity getOceanInfoByStationCode(@Param("stationCode") String stationCode);

    Integer getOceanInfoList(@Param("stationCode") String stationCode,@Param("month") String month);

    int deleteBatchByDate(@Param("stationCode") String stationCode,@Param("list") List<Date> list);

    List<Map<String,Object>> getOceanInfoLabel(@Param("stationCode") String stationCode[], @Param("length") int length);

    List<Map<String,Object>> getOceanInfoListByParams(Map<String,Object> params);
}
